#include<bits/stdc++.h>
using namespace std;
bool sfgj[100001],bsgm[100001];
int gs[100001],a,i,j;
int main(){
    freopen("duel4.in","r",stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    cin>>a;
    int ans=a;
    memset(sfgj,false,sizeof(sfgj));
    memset(bsgm,false,sizeof(bsgm));
    for(i=0;i<a;i++)cin>>gs[i];
    sort(gs,gs+a);
    for(i=0;i<a;i++){
        if(!bsgm[i]){
            int p=i;
            for(j=i;j<a;j++){
                if(gs[j]>gs[i]&&(!sfgj[j])){
                    ans--;
                    sfgj[j]=true;
                    bsgm[j]=true;
                    sfgj[i]=true;
                    bsgm[i]=true;
                    int k=1;
                    while(true){
                        if(gs[j+k]>gs[i+k]&&(!sfgj[j+k])){
                            ans--;
                            sfgj[j+k]=true;
                            bsgm[j+k]=true;
                            sfgj[i+k]=true;
                            bsgm[i+k]=true;
                            p=j+k;
                            k++;}
                        else break;}
                    break;
                }
            }
            i=p;
        }
    }
    cout<<ans<<endl;
    return 0;}
